import { _getAllAdvantage } from '@/api/mixins'

export default {
  data() {
    return {
      advantageList: []
    }
  },
  methods: {
    async getAllAdvantage() {
      const { success, message, data } = await _getAllAdvantage()
      if (success) {
        this.advantageList = data
      } else {
        this.$message({ type: 'error', message })
      }
    }
  },
  mounted() {
    this.getAllAdvantage()
  }
}
